<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    Calculator extra feature
  </head>
  <style type="text/css" media="screen">
    body { font: 82% arial,sans-serif; }
    .content { width: 500px; text-align: left; }
    button { padding: 5px 25px; margin: 5px; font-size: 18px; border: 1px; border-radius: 6px; }
    #yes { background: #87cefa; font-weight: bold; }
    #no { background: #e5e5e5; }
  </style>
  <script type="text/javascript">
    function setPref(val) {
    Application.prefs.setValue("calculator.calc_superfish", val);
    Application.prefs.setValue("calculator.superfish_first_launch", 0);
    document.getElementById("buttons").innerHTML = "Saving...";
    setTimeout( function() { window.location = "chrome://calculator/content/calculator.xul"; }, 900);
    }
  </script>
  <body>
    <center>
      <img src="chrome://calculator/skin/calculator_medium.png" alt="Logo" />
    <div class="content">
      <h1>Thanks for installing Calculator!</h1>
      <br />
      <h2>Would you like to enable the Similar Products feature?</h2>
      This system allows you to find better deals when shopping online. It instantly compares prices and finds similar products on millions of products on the web. Just click on “See Similar” button next to the image to open this window and find deals.<br />
      <br />
      <div class="" id="buttons">
	<button id="yes" onclick="setPref(0)">Yes</button>
	<button id="no" onclick="setPref(1)">No</button>
      </div>
      <br />
      <h3>You can disable this service at any time</h3>
      To <strong>disable</strong> this service, go to the <strong>preferences</strong> of Calculator and click disable Similar Products. You may also get the preferences window using the firefox menu: Tools -&gt; Addons -&gt; Calculator -&gt; Options. <br />
      <br />
    </div>
      <img src="http://firefoxcalculator.googlecode.com/hg/Screenshot.jpg" class="" alt="" />
    </center>
  </body>
</html>
